<template>

</template>
<script setup lang="ts">
const config = new useRuntimeConfig()

onMounted(()=>{
  getCode()
})

function getCode() {
  window.location.href =
      `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${config.public.appid}&redirect_uri=` +
      encodeURIComponent(config.public.projectUrl) +
      "&response_type=code&scope=snsapi_userinfo&state=1&connect_redirect=1#wechat_redirect";
}

</script>
<style scoped lang="scss">

</style>
